<template>
  <van-swipe class="home-swipe" v-if="carousels.length > 0">
    <van-swipe-item v-for="(carousel, index) in carousels" :key="index">
      <img :src="carousel.carouselUrl" />
    </van-swipe-item>
  </van-swipe>
</template>
<script setup>
defineProps(['carousels'])
</script>
<style lang="less">
.home-swipe {
  img {
    width: 100%;
    height: 100%;
  }
}
</style>
